package com.hgyc.mom.mes.enums;

/**
 * 工单类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-07-12 16:15:01
 * @version 1.0
 **/
public enum WorkOrderTypeEnum {
    NORMAL("normal", "标准工单"),
    REWORK("rework", "返工工单"),
    TRIAL("trial", "试产工单"),
    OUTSOURCE("outsource", "委外加工"),
    CUSTOM("custom", "客户定制"),
    DISASSEMBLE("disassemble", "拆解工单")
    ;

    private final String value;
    private final String label;

    WorkOrderTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static WorkOrderTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (WorkOrderTypeEnum item : WorkOrderTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}
